<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml" id="html">
    <head>
        <title></title>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <base href="<?= base_url(1); ?>" />
        <link type="text/css" href="css/main.css?v=<?= $config['version'] ?>" rel="stylesheet" />
        <script src="js/time.js?">
        </script>
        <script>
        
        </script>
    </head>
    <body >
        <?php include(VIEWPATH . 'common/main_header.php'); ?>
        <?php //print_r($xishu); ?>
        
        <form action="" method="POST" id="rowForm">
		  <table width="100%" border="0" cellspacing="1" cellpadding="0" class="tablegrid tableedit">
		    <tr>
		<td><?= translate('ACTIVITY_MODULE_DES') ?>:</td>
		<td><?=$modulename ?></td>
	</tr>
	<tr>
		<td><?= translate('ACTIVITY_STRATEGY_STRAGEGYNAME') ?></td>
		<td><input type="text" name="row[strategyname]" id="strategyname"
			value="<?= $row['strategyname'] ?>"></td>
	</tr>
		   
		     
		      <tr>
		        <td>
		            <?= translate('ACTIVITY_ANGELBLESS_GOLDRATIO') ?>
		          </td>
		        <td >
		            <input type="text"  name="row[goldratio]" id="goldratio" value = '<?=$row['goldratio'] ?>' />
		        </td>
		      </tr>		      
		   <tr>
		        <td>
		            <?= translate('ACTIVITY_ANGELBLESS_COSTDIAMOND') ?>
		          </td>
		        <td >
		            <input type="text"  name="row[costdiamond]" id="costdiamond" value = '<?=$row['costdiamond'] ?>' />
		        </td>
		      </tr>	
		      
		    <input name="tablename" type='hidden' value="<?=$tablename ?>" />
	<input name="strategyid" type='hidden' value="<?=$row['strategyid'] ?>" />
	<input name="tableenum" type='hidden' value="<?=$tableenum ?>" />
	<tr>
		<td>
		<div align="center"><input type="hidden" name="tablename"
			value="<?= $tablename ?>"> <input name="submit" type="submit"
			id="submit" value="<?= translate('SUBMIT') ?>" /></div>
		</td>
		<td>
		<div align="center"><input type="reset"
			value="<?= translate('RESET') ?>" id="reset" /></div>
		</td>
	</tr>
		  </table>
	</form>

    <script type="text/javascript">
            SG.init("core.form", function() {
                $.formValidator.initConfig({formid: "#rowForm", submitonce: true});

                    $("#strategyname").formValidator({empty: false, onshow: '<?= translate('C_NOT_EMPTY') ?>'}).inputValidator({min: 1, onerrormin: '<?= translate('C_NOT_EMPTY') ?>'});
                	$("#strategyid").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: 'num', datatype: 'enum', onerror: '<?= translate('C_ONLY_NUM') ?>'});
                	$("#goldratio").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});
                	$("#costdiamond").formValidator({empty: false, onshow: '<?= translate('C_ONLY_NUM') ?>'}).regexValidator({regexp: '^(0\.\d*[1-9])|(1)$',  onerror: '<?= translate('C_NUM_BETTWEEN_0_AND_1') ?>'});

               });
    </script>
    </body>
</html>